package com.foundationmade.newbiz;

import java.security.Principal;
import java.util.Locale;

import javax.annotation.security.RolesAllowed;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
 */
@Controller
public class HomeController
{	
	private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
	
	@RolesAllowed("ROLE_ADMIN") 
	@RequestMapping(value = "", method = { RequestMethod.GET, RequestMethod.POST })
	public ModelAndView home(Locale locale, Model model, Principal principal)
	{
		return new ModelAndView("tiles.default");
	}
}